package com.network;

import java.net.*;
public class Test {
    public static void main(String[]args)throws Exception{
        byte[] bytes = "test".getBytes();
        DatagramSocket datagramSocket = new DatagramSocket();
        DatagramPacket sender = new DatagramPacket(bytes, bytes.length, InetAddress.getLocalHost(), 3433 );
        datagramSocket.send(sender);
        datagramSocket.close();
    }
}
